<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>房间类型</title>
<link href="/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/jquery.js"></script>

<script type="text/javascript">
$(document).ready(function(){
  $(".click").click(function(){
  $(".tip").fadeIn(200);
  });
  
  $(".tiptop a").click(function(){
  $(".tip").fadeOut(200);
});

  $(".sure").click(function(){
  $(".tip").fadeOut(100);
});

  $(".cancel").click(function(){
  $(".tip").fadeOut(100);
});

});
</script>


</head>


<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">HotelSys</a></li>
    <li><a href="#">房间管理</a></li>
    <li><a href="#">类型管理</a></li>
    </ul>
    </div>
    
    
    <div class="tools">
    	<ul class="toolbar">
        <li class="click"><a href="/servlet/RoomTypeServlet?operate=get"><span><img src="/images/t01.png" /></span>添加</li>
        </ul>
     </div>
    
    
    <table class="tablelist">
    <colgroup>
    	<col style="width:150px"/>
    	<col style="width:120px"/>
    	<col style="width:120px"/>
    	<col style="width:120px"/>
    	<col style="width:120px"/>
    	<col style="width:120px"/>
    	<col style="width:120px"/>
    	<col style="width:120px"/>
    	<col style="width:120px"/>
    	<col style="width:120px"/>
    	<col style="width:120px"/>
    	<col style="width:180px"/>
    	<col style="width:180px"/>
    	<col/>
     
    </colgroup>
    	<thead>
    	<tr>
    	<th>类型名称</th>
        <th>单价</th>
        <th>押金</th>
        <th>状态</th>
        <th>创建时间</th>
        <th>创建用户</th>
        <th>最后修改时间</th>
        <th>最后修改用户</th>
        <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach var="item" items="${list}">
         	<tr><td>${item.typeName}</td>
		        <td>${item.price}</td>
		        <td>${item.deposit}</td>
		        <td><c:if test="${item.status==0}"><span style="color:red;">禁用</span></c:if><c:if test="${item.status==1}"><span style="color:green;">正常</span></c:if></td>
		        <td><fmt:formatDate value="${item.createTime }" pattern="yyyy-MM-dd HH:mm"/></td>
		        <td>${item.createAdmin.realName}</td>
		        <td><fmt:formatDate value="${item.updateTime }" pattern="yyyy-MM-dd HH:mm"/></td>
		        <td>${item.updateAdmin.realName}</td>
		        <td><a href="?operate=get&typeId=${item.typeId}" class="tablelink">修改</a>  
		            <a href="?operate=del&typeId=${item.typeId}" class="tablelink">删除</a></td>
	        </tr> 
        </c:forEach>
        </tbody>
    </table>
    
   
    <div class="pagin">
    	<div class="message">共<i class="blue">1256</i>条记录，当前显示第&nbsp;<i class="blue">2&nbsp;</i>页</div>
        <ul class="paginList">
        <li class="paginItem"><a href="javascript:;"><span class="pagepre"></span></a></li>
        <li class="paginItem"><a href="javascript:;">1</a></li>
        <li class="paginItem current"><a href="javascript:;">2</a></li>
        <li class="paginItem"><a href="javascript:;">3</a></li>
        <li class="paginItem"><a href="javascript:;">4</a></li>
        <li class="paginItem"><a href="javascript:;">5</a></li>
        <li class="paginItem more"><a href="javascript:;">...</a></li>
        <li class="paginItem"><a href="javascript:;">10</a></li>
        <li class="paginItem"><a href="javascript:;"><span class="pagenxt"></span></a></li>
        </ul>
    </div>
    
    
    <div class="tip">
    	<div class="tiptop"><span>提示信息</span><a></a></div>
        <div class="tipinfo">
        <span><img src="/images/ticon.png" /></span>
        <div class="tipright">
        <p>是否确认对信息的修改 ？</p>
        <cite>如果是请点击确定按钮 ，否则请点取消。</cite>
        </div>
        </div>
        
        <div class="tipbtn">
        <input name="" type="button"  class="sure" value="确定" />&nbsp;
        <input name="" type="button"  class="cancel" value="取消" />
        </div>
    
    </div>
    
    
    
    
    </div>
    
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>

</body>

</html>
